package com.ck.client.service.impl;

import com.ck.client.dao.DeviceLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ck.common.model.DeviceLog;
import com.ck.client.service.DeviceLogService;

/**
 * 终端日志Service实现类
 */
@Service(value = "deviceLogService")
public class DeviceLogServiceImpl implements DeviceLogService {
	
	@Autowired
	private DeviceLogMapper deviceLogMapper;

	/**
	 * 保存终端日志
	 * @param deviceLog DeviceLog
	 */
	@Override
	@Transactional(rollbackFor = Exception.class)
	public void saveDeviceLog(DeviceLog deviceLog) {
		deviceLogMapper.saveDeviceLog(deviceLog);
	}

}
